package com.billsystem.mapper;

import com.billsystem.pojo.Account;

import com.billsystem.pojo.Record;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AccountMapper {

    List<Account> queryListByUid(int uid);

    int addAccount(Account account);

    int deleteAccount(Account account);

    Account queryAccount(int id);

    int updateAccount(Account account);

    //添加或修改收支记录时，修改账户余额
    int updateAmount(double money, int uid, int aid);

}
